package com.ruoyi.medicine.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.ruoyi.medicine.domain.HisMedicineDrug;

import java.util.List;

public interface ICartService {

    int addCart(Long userId, Long[] drugIds) throws JsonProcessingException;

    List<HisMedicineDrug> myCartListService(Long userId) throws JsonProcessingException;

    int updateCartNumService(Long userId, Long drugId, Long cartDrugNum) throws JsonProcessingException;
    //
    int deleteCartByDrugIds(Long userId,Long[] drugIds) throws JsonProcessingException;
}
